package com.cj.mobile.iabp.mvp.model.entity;

import android.graphics.Bitmap;
import android.view.View;

import java.util.List;

/**
 * 包名： com.zqw.mobile.recycling.model
 * 对象名： MainEvent
 * 描述：首页监听
 * 作者： wly
 * 邮箱：wangliyang206@163.com
 * 创建日期： 2018/3/9 17:52
 */

public class MainEvent {
    public MainEvent() {
    }

    public MainEvent(int code) {
        this.code = code;
    }

    public MainEvent(int code, DictInfo info) {
        this.code = code;
        this.info = info;
    }

    public MainEvent(int code, boolean isBtnHighlight) {
        this.code = code;
        this.isBtnHighlight = isBtnHighlight;
    }

    // 删除员工
    public MainEvent(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    // 删除仓库
    public MainEvent(int code, String msg, String type) {
        this.code = code;
        this.msg = msg;
        this.type = type;
    }

    public MainEvent(int code, double latitude, double longitude) {
        this.code = code;
        this.latitude = latitude;
        this.longitude = longitude;
    }

    // 修改报价
    public MainEvent(int code, double price) {
        this.code = code;
        this.price = price;
    }

    // 选择批次
    public MainEvent(int code, int position) {
        this.code = code;
        this.position = position;
    }

    public MainEvent(int code, View view) {
        this.code = code;
        this.view = view;
    }

    public MainEvent(int code, Bitmap mBitmap) {
        this.code = code;
        this.mBitmap = mBitmap;
    }

    public MainEvent(int code, View view, String msg) {
        this.code = code;
        this.view = view;
        this.msg = msg;
    }

    public MainEvent(int code, String msg, int position, String type) {
        this.code = code;
        this.msg = msg;
        this.position = position;
        this.type = type;
    }

    public MainEvent(int code, String msg, String orderNo, String createTime, String status, String weight, String amount) {
        this.code = code;
        this.msg = msg;
        this.orderNo = orderNo;
        this.createTime = createTime;
        this.status = status;
        this.weight = weight;
        this.amount = amount;
    }

    public MainEvent(int code, int position, View view) {
        this.code = code;
        this.position = position;
        this.view = view;
    }

    public MainEvent(int code, int position, int addImageType) {
        this.code = code;
        this.position = position;
        this.addImageType = addImageType;
    }

    public MainEvent(int code, int position, int childPosition, int type, View view) {
        this.code = code;
        this.position = position;
        this.childPosition = childPosition;
        this.priceType = type;
        this.view = view;
    }

    public MainEvent(int code, String catId, String catName, int position, double totalWeight, List<WeighingScanSubmit> valList) {
        this.code = code;
        this.catId = catId;
        this.catName = catName;
        this.position = position;
        this.totalWeight = totalWeight;
        this.valList = valList;
    }

    public MainEvent(int code, int position, int addImageType, String msg, boolean isBtnHighlight) {
        this.code = code;
        this.position = position;
        this.addImageType = addImageType;
        this.msg = msg;
        this.isBtnHighlight = isBtnHighlight;
    }

    /**
     * 0 = 上传极光推送id；
     */
    private int code = 0;
    private String msg = "";
    private String type = "";
    private double price = 0;
    private int position = 0;
    private boolean isBtnHighlight;
    // 经度
    private double longitude;
    // 纬度
    private double latitude;
    private DictInfo info;
    private View view;

    private String orderNo;
    private String createTime;
    private String status;
    private String weight;
    private String amount;

    private int childPosition;
    private int priceType;
    private Bitmap mBitmap;

    private String catId;
    private String catName;
    // 合计净重
    private double totalWeight;
    // 称重过程
    private List<WeighingScanSubmit> valList;

    public String getCatId() {
        return catId;
    }

    public void setCatId(String catId) {
        this.catId = catId;
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    public List<WeighingScanSubmit> getValList() {
        return valList;
    }

    public void setValList(List<WeighingScanSubmit> valList) {
        this.valList = valList;
    }

    public double getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(double totalWeight) {
        this.totalWeight = totalWeight;
    }

    public Bitmap getBitmap() {
        return mBitmap;
    }

    public void setBitmap(Bitmap mBitmap) {
        this.mBitmap = mBitmap;
    }

    public int getChildPosition() {
        return childPosition;
    }

    public void setChildPosition(int childPosition) {
        this.childPosition = childPosition;
    }

    public int getPriceType() {
        return priceType;
    }

    public void setPriceType(int priceType) {
        this.priceType = priceType;
    }

    // 添加图片类型
    private int addImageType;

    public int getAddImageType() {
        return addImageType;
    }

    public void setAddImageType(int addImageType) {
        this.addImageType = addImageType;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public View getView() {
        return view;
    }

    public void setView(View view) {
        this.view = view;
    }

    public DictInfo getInfo() {
        return info;
    }

    public void setInfo(DictInfo info) {
        this.info = info;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public boolean isBtnHighlight() {
        return isBtnHighlight;
    }

    public void setBtnHighlight(boolean btnHighlight) {
        isBtnHighlight = btnHighlight;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    /**
     * 0 = 上传极光推送id；
     */
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
